package org.ch02.job.test02;

import java.lang.reflect.Constructor;

/**
 * @author XCH
 * @date 2025 - 03 - 17
 */
public class MainTest03 {
    public static void main(String[] args) throws Exception {
        Class<Student> clazz = Student.class;
        Constructor<?> constructor = clazz.getConstructor(String.class, Float.class);
        Object obj = constructor.newInstance("张三", 70.5f);
        System.out.println(obj);

    }
}
